package com.andy.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @packageName: com.andy.controller
 * @user: andyliu
 * @date: 2021/9/4 17:59
 * @email 115176513@qq.com
 * @description: TODO
 */

@RestController
@RequestMapping("product")
public class ProductController {
    @Value("${server.port}")
    private String port;

    @GetMapping("/info/{pid}")
    public String getProductInfo(@PathVariable String pid){
        System.out.println(port+"****************************");
        return pid;
    }
}
